import axios from "axios";

const request = axios.create({
  baseURL: "/api/admin",
});

request.interceptors.request.use((config) => {
  return config;
});

request.interceptors.response.use((resp) => {
  //   if (resp.data) return resp.data;
  return resp;
});

export default request;

export { request };
